﻿using System.Windows.Controls;
using Mammoth.Mocks;
using Mammoth.Services;
using Mammoth.ViewModels;

namespace Mammoth.Views.Account
{
    /// <summary>
    /// Interaction logic for AccountList.xaml
    /// </summary>
    public partial class AccountList : UserControl, IEventInterest
    {

        public AccountList(IViewModelFactory vmFactory)
        {
            InitializeComponent();

            DataContext = vmFactory.GetViewModel<AccountListViewModel>(this);
        }

        public void ReleaseHandler()
        {
            ((IEventInterest)DataContext).ReleaseHandler();
        }
    }
}
